package com.wxy.ej.flow.modules.taskflow.dto;


import lombok.Data;

/**
 *
 * @author wuxiaoyong
 * @since 2022-01-29
 */

@Data
public class NodeDto{
    private static final long serialVersionUID = 1L;

    private String id;
    private String type;
    private String name;

    private Long dataSourceId; //数据源id
    /*private String url;
    private String username;
    private String password;*/
    private String sql;
    private String sqlColumn;
    private String sqlCount;
    private String sqlWhere; // where 条件
    private String sqlLimit; // 分页

    // http
    private String httpUrl;
    private String httpMethod;
    private String httpData;
    private String httpHeader;

    // excel
    private String header;

    // link
    private String sourceId;
    private String targetId;
    private String label;
    private String connector;
    private Boolean isMethodBody;
    private String mapJson;  // 映射关系 mapJson

    // 中断条件
    private String breakCondition;
    private String continueCondition;
    private String returnContent;

    // if 条件
    private String ifCondition;

    // link route 条件
    private String linkRouteCondition;

    // '循环起' 设置每项的变量
    private String circleItemVar = null;


    // 数据汇聚节点：汇聚方式：1：追加， 2：笛卡尔积
    private int combineDataType = 1;
    private String needCombineVars;

    // in 节点，指定数据存入storageMap中的变量，通过数据汇聚，计算汇总
    // private String uiStorageDataMapKeyVar = null;
    // 页面定义变量
    private String defineVarName;
    private String defineVarType;
    private String defineVarInitData;
    private String defineVarName4PageTotal;

    // 脚本, js, sql
    private String script;
    private Boolean isPrintLog;

    // email
    private String emailAddress;
    private String emailAddressCopyTo;
    private String emailTitle;
    private String emailContent;
    // notify info
    private String notifyTitleVar;
    private String notifyTitle;
    private String notifyContentVar;
    private String notifyContent;

    // 时间范围
    private String[] datetimeRangeValue;

    // 备注
    private String remark;
    private String description;
}
